package Main;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;


final public class Buffer
{
	static BufferedImage[] Images = new BufferedImage[20];
	
	public static void Read()
	{
		

		
		try
 		{
			Images[0] = ImageIO.read(new File("gfx/TestHex.png"));
			Images[1] = ImageIO.read(new File("gfx/PlayerTest.png"));
			Images[2] = ImageIO.read(new File("gfx/PlayerTest2.png"));
			
 			System.out.println("Alle Bilder erfolgreich im Buffer.");
 			
 		}
 		catch (IOException e)
 		{
 			System.out.println("Irgendein Bild konnte nicht gefunden werden!");
 		}
		
 
		
	}
	
	static public BufferedImage getImage(int i)
	{
		return Images[i];
	}
	

}